package group32.shared;

public class PhotoScore implements Comparable<PhotoScore> {
private int index;
float score;

public PhotoScore (int index,float score){
	this.setIndex(index);
	this.score=score;
}

public int compareTo(PhotoScore o) {
	if (this.score>o.score) {
		return 1;
	}
	else {
		if (this.score<o.score) {
			return -1;
		}
		else {
			return 0;
		}
	}
}

public int getIndex() {
	return index;
}

public void setIndex(int index) {
	this.index = index;
}

}
